﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RequirementAndBug.Common.Entities.RequireModels
{
    /// <summary>
    /// 需求详情实体
    /// </summary>
    public class RequireDetailItem
    {        
        public int RequireID
        {
            get;
            set;
        }

        public int UserID
        {
            set;
            get;
        }

        /// <summary>
        /// 受理人员：0为所有人可见
        /// </summary>
        [Display(Name = "受理人员")] 
        public int TargetUserID
        {
            get;
            set;
        }

        /// <summary>
        /// 项目类型：0需求，1Bug
        /// </summary>
        [Display(Name="项目类型")]
        [Required(ErrorMessage = "不能为空")]  
        public int ProCategory
        {
            get;
            set;
        }

        /// <summary>
        /// 需求标题
        /// </summary>   
        [Display(Name = "需求标题")]
        [Required(ErrorMessage = "不能为空")]  
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 需求描述
        /// </summary>  
        [Display(Name = "需求描述")]
        [Required(ErrorMessage = "不能为空")]  
        public string ProjectDesc
        {
            get;
            set;
        }

        public DateTime CreateTime
        {
            get;
            set;
        }
        /// <summary>
        /// 截止日期
        /// </summary>
        [Display(Name = "截止日期")]
        [DataType(DataType.DateTime)]
        public DateTime? DeadlineTime
        {
            get;
            set;
        }
    }
}
